﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>东晨皇玺斑助手</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
        <script src="../js/mui.min.js"></script>
		<!--App自定义的css-->
		<!--<link rel="stylesheet" type="text/css" href="../css/app.css"/>-->
		<style>
			.mui-bar-popover {
				width: 30%;
			}
		</style>
	</head>
	<body>

	</body>
    <script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/page/getuserBylogin.js"></script>
    <script src="../js/cookieutil.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/getUrlParam.js"></script>
    <script>
        $(function(){
            var  userid=getCookie('userid');
            if (userid!=null&&userid!=undefined&&userid!="")
            {
                getUser(userid);
                window.location.href = topath() + "/view/adlist.html";
            }
            else {
                var appid = "wxd4aff866a1642b28";//修改为你自己的appid
                var redirect_uri = escape(topath() + "/wxlogin/login");//修改为你自己的域名
                var url = "https://open.weixin.qq.com/connect/oauth2/authorize" +
                    "?appid=" + appid +
                    "&redirect_uri=" + redirect_uri +
                    "&response_type=code" +
                    "&scope=snsapi_userinfo" +
                    "&state=STATE#wechat_redirect";
                window.location.href = url;
            }
        });
	</script>
</html>